<?php
class Marquee extends BaseModel {

    public static function getMarquee() {
    	$marquee = array();
    	$members = Member::getAll(array(), array('id', 'DESC'), 1);
    	if(isset($members[0])) {
    		$marquee[] = sprintf('PEAK newest member is <a href="%s%s/">%s</a>.', REAL_ROOT, $members[0]->login, $members[0]->login);
    	}
    	
    	$marquee[] = sprintf('Become a PEAK member. <a href="%s%s">Register here</a>.', REAL_ROOT, 'member/register/');
    	
    	shuffle($marquee);
    	return $marquee;
    }
    
}
?>